﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EmployeeLeaveSystem.Shared.DAO {
    /// <summary>
    /// 用于前后端交互的文件，通过本结构，传递服务器后端和前端的信息
    /// </summary>
    public class NetworkData {
        public int errCode { get; set; } = 200;
        public string errMsg { get; set; } = "";
        public Object? data { get; set; }
    }

    public class NetworkDataLocal<T> {
        public int errCode { get; set; } = 200;
        public string errMsg { get; set; } = "";
        public T? data { get; set; }
    }
}
